package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhThoughtProcessInsertReq;
import com.xiao.hao.req.XhThoughtProcessQueryPageReq;
import com.xiao.hao.req.XhThoughtProcessUpdateReq;
import com.xiao.hao.resp.XhThoughtProcessResp;
import com.xiao.hao.entity.XhThoughtProcess;

/**
*
*
* @Description 内容过程表 类型转换
* @Author xiaohao
* @Date 2025-03-01 16:18:19
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhThoughtProcessConvertor {

    XhThoughtProcessConvertor INSTANCE = Mappers.getMapper(XhThoughtProcessConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhThoughtProcess
    * @author xiaohao
    * @date 2025-03-01 16:18:19
    */
    XhThoughtProcess reqToEntity(XhThoughtProcessInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhThoughtProcess
    * @author xiaohao
    * @date 2025-03-01 16:18:19
    */
    XhThoughtProcess reqToEntity(XhThoughtProcessUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhThoughtProcessResp
    * @author xiaohao
    * @date 2025-03-01 16:18:19
    */
    XhThoughtProcessResp entityToResp(XhThoughtProcess entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhThoughtProcessResp>
    * @author xiaohao
    * @date 2025-03-01 16:18:19
    */
    List<XhThoughtProcessResp> entityListToRespList(List<XhThoughtProcess> list);
}



